package com.lj.eduservice.mapper;

import com.lj.eduservice.entity.Chapter;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lj.eduservice.entity.dao.ChapterDao;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author luojing
 * @since 2021-05-06
 */
public interface ChapterMapper extends BaseMapper<Chapter> {

    //通过课程id获得章节和小节
    List<ChapterDao> getChapterAndVideoByCourseId(String courseId);
}
